#pragma once

#include <Singleton.h>

#include <physics/Registrator.h>
#include <physics/Factory.h>

#include <physics/Joint.h>
#include <physics/DistanceJoint.h>
#include <physics/RevoluteJoint.h>
#include <physics/MouseJoint.h>

namespace physics
{

// Add Registrator for your created joints
class JointFactory:
	public Singleton <JointFactory>,
	public Factory <Joint>,
	private Registrator <Joint, DistanceJoint>,
	private Registrator <Joint, RevoluteJoint>,
	private Registrator <Joint, MouseJoint>
{
};

}	// namespace physics